package com.czkevin.biliwsclient.lottery;

import java.util.Map;

public class RequireCondition {

  public static final RequireCondition FOLLOW = new RequireCondition(RequireType.FOLLOW, 0);

  public final RequireType type;

  public final int value;

  public RequireCondition(RequireType type, int value) {
    this.type = type;
    this.value = value;
  }

  public void putParams(Map<String, String> params) {
    params.put("require_type", Integer.toString(type.networkType));
    params.put("require_value", Integer.toString(value));
  }

}
